package com.share.hope.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.hope.entity.PoorChildren;
import com.share.hope.entity.page.PageQueryVo;
import com.share.hope.entity.result.PageR;
import com.share.hope.entity.result.R;
import com.share.hope.vo.PoorChildPageQueryVo;

import java.util.List;

public interface PoorChildrenService extends IService<PoorChildren> {

    R<String> savePoorChildren(PoorChildren poorChildren);

    R<String> updatePoorChildren(PoorChildren poorChildren);

    R<String> deletePoorChildren(Long id);

    R<PageR<PoorChildren>> pagePoorChildren(PageQueryVo<PoorChildPageQueryVo> queryVo);

    R<PoorChildren> getPoorChildrenById(Long id);

    R<List<PoorChildren>> getAllPoorChildren(Long userId);
}
